Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy: Apply modernize-avoid-c-arrays everywhere #6564

Merged
merged 28 commits into from
Dec 30, 2022

Conversation

sakertooth
Copy link
Contributor

This clang-tidy warns against using C-arrays and suggests using either an std::array or std::vector. Since the fix-its aren't supported for this check, all of these changes were done manually. Some C-style arrays were skipped as they made the code more verbose with no real benefit.

The most recent change: TripleOscillator.cpp:314:3
@sakertooth
Copy link
Contributor Author

Might revert the changes made in DrumSynth.cpp, unless anyone objects. The changes were quite verbose, IMO.

@sakertooth sakertooth marked this pull request as draft November 8, 2022 23:00
@sakertooth sakertooth force-pushed the modernize-avoid-c-arrays branch from 682e47d to ed16818 Compare November 8, 2022 23:07
@sakertooth sakertooth marked this pull request as ready for review November 9, 2022 19:41
+ Rename typeDescStruct to TypeDescStruct
+ Make s_types const
@DomClark DomClark merged commit a876cf9 into LMMS:master Dec 30, 2022
@sakertooth sakertooth deleted the modernize-avoid-c-arrays branch December 30, 2022 22:20
sakertooth added a commit to sakertooth/lmms that referenced this pull request May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants